package com.iursp.thirdlib;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component("authThirdlibHolder")
public class AuthThirdlibHolder {
	
	@Autowired
	private Map<String, AuthThirdlibProcess> authThirdlibProcess;
	
	/**
	 * 
	 * @Title: findAuthRole   
	 * @Description: 统一对外接口访问
	 * @param: @param path
	 * @param: @return      
	 * @return: AuthRoleProcess      
	 * @throws
	 */
	public AuthThirdlibProcess findThirdlibRole(String path) {
		 String name = path.toLowerCase()+AuthThirdlibProcess.class.getSimpleName();
		 AuthThirdlibProcess roleProcess = authThirdlibProcess.get(name);
		 return roleProcess;
	}

}
